package com.ucode.application.form.crm;

import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Length;
import com.ucode.springboot.starter.web.validator.annotation.CheckMember;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@SuppressWarnings("serial")
@ApiModel(value="商机状态组")
public class BusinessStatusGroupForm implements Serializable{

    @ApiModelProperty(value = "商机状态组名称",required=true)
    @NotBlank(message = "商机状态组名称不能为空")
    @Length(max=100,message = "商机状态组最大100字符")
    private String name;

    @ApiModelProperty(value = "状态 :1启用 0禁用",required=false,example="1")
    @CheckMember(value={"1","0"},message="状态非法")
    private Integer statuz;
    
    @ApiModelProperty(value = "备注",required=false)
    @Length(max=500,message = "备注最大500字符")
    private String remark;
    
    
    @ApiModelProperty(value = "商机状态",required=true)
    @NotNull(message="商机状态不能为空")
    @Size(min=1,message="商机状态组内至少有一个阶段")
    private List<BusinessStatusItem> items;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<BusinessStatusItem> getItems() {
        return items;
    }

    public void setItems(List<BusinessStatusItem> items) {
        this.items = items;
    }

    public Integer getStatuz() {
        return statuz;
    }

    public void setStatuz(Integer statuz) {
        this.statuz = statuz;
    }
}
